package com.ibm.productivity.tools.blogplugin.meta;


public interface IBlog {
		
	public boolean canListArticle();
	public boolean canPostArticle();
	public boolean canUpdateArticle();
	public boolean canDeleteArticle();
	public boolean canListComment();
	public boolean canPostComment();
	public boolean canDeleteComment();
	
			
	public String getBlogName();
	
	public int getArticleNumber() throws BlogException ;
	public Article[] getArticles() throws BlogException;
	public Article[] getArticles(int number) throws BlogException;
	public String [] listArticle(int number) throws BlogException;
	public Article postArticle(Article a) throws BlogException;
	public Article updateArticle(Article a) throws BlogException;
	public void deleteArticle(Article a) throws BlogException;
	// comment action 
	public Comment[] getComments(Article a) throws BlogException;
	public Comment postComment(Article a, String content) throws BlogException; 
	public void deleteComment(Article a, Comment comment) throws BlogException; 
}
